package com.example.fronttest;

import android.app.Application;
import android.content.res.AssetManager;
import android.graphics.Typeface;

public class BaseApplication extends Application{

    private static BaseApplication instance;

    public static BaseApplication getInstance() {
     
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this ;
    }
    
    public static Typeface getZwTypeface(){
    	   AssetManager assets =   getInstance().getAssets() ;
           Typeface fromAsset = Typeface.createFromAsset(assets, "fonts/Himalaya-e.ttf");
           return fromAsset ;
    }

}
